package Builder;

public class BuilderPatternDemo {

    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();


        Meal meal = mealBuilder.prepareVegMeal(); // 从 MealBuilder 里面拿出一系列的东西
        System.out.println("Veg Meal: " + meal.showItemsList()  + " Cost: "  + meal.getTotalPrice() );

        System.out.println("\n");
        Meal meal1 = mealBuilder.prepareNonVegMeal();
        System.out.println("Nonveg Meal: " + meal1.showItemsList() + " Cost: " + meal1.getTotalPrice());
    }
}
